package com.leizhou.consumer.client;

import com.leizhou.consumer.client.fallback.UserClientFallback;
import com.leizhou.consumer.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author LT
 * @version 1.0.0
 * @ClassName UserClient.java
 * @Description TODO
 * @createTime 2020年04月26日 00:45:00
 */
@FeignClient(value = "user-service", fallback = UserClientFallback.class)
public interface UserClient {
    @GetMapping("/user/{id}")
    User findOne(@PathVariable("id") Long id);
}
